import { Component } from "@angular/core";
import { Router } from "@angular/router";
import { HttpService } from "../../services/http.service";
@Component({
  selector: "app-homePage",
  templateUrl: "home.page.html",
  styleUrls: ["home.page.scss"]
})
export class HomePage {
  slideOpts = {
    effect: "flip", //轮播效果
    autoplay: {
      delay: 4000
    },
    loop: true
  };
  public newlist = [
    {
      title: "房产继承拖延不办，衍生10位继承人 公证排忧解难，疫情时期显担当",
      time: "2020-04-01",
      img: "../../assets/image/img_01.png"
    },
    {
      title: "中办国办印发相关规定 建立防范和惩治弄虚作假责任制",
      time: "2019-12-11",
      img: "../../assets/image/img_02.png"
    },
    {
      title: "南京市物价局 南京市司法局关于印发《南京市公证服务收费标准》的通知",
      time: "2019-09-29",
      img: "../../assets/image/img_03.png"
    },
    {
      title: "前公司工资拖欠,30万工资拿不到,不用慌,来做证据保全公证维权",
      time: "2019-05-12",
      img: "../../assets/image/img_01.png"
    }
  ];
  constructor(public router: Router, public HttpService: HttpService) {
    console.log(123654789)
  }
  

  toDetails(info:object,time:any,i:any) {
    this.router.navigate(["/home/news"], { queryParams: { 
      info: info,
      time:time,
      index: i
     } });
  }
  ngOnInit() {
   
  }
}

